import { createBrowserRouter,Navigate } from "react-router-dom";
import App from '../App'

import L1 from "../pages/L1";
import L2 from "../pages/L2";

const router = createBrowserRouter([
    {path:'/app',element:<App></App>,children:[
        {path:'/app/L1',element:<L1></L1>},
        {path:'/app/L2',element:<L2></L2>},
    ]},
    {path:'/',element:<Navigate to='/app'></Navigate>}
  
])

export default router